
all: mjpg-720p60 mjpg-600p60 mjpg-480p120 mjpg-240p120 yuyv-720p9 yuyv-600p21 yuyv-480p30 yuyv-240p30

mjpg-720p60: mjpg-720p60.cpp 
	g++ -o $@ $^ `pkg-config --cflags --libs gstreamer-1.0`

mjpg-600p60: mjpg-600p60.cpp 
	g++ -o $@ $^ `pkg-config --cflags --libs gstreamer-1.0`

mjpg-480p120: mjpg-480p120.cpp 
	g++ -o $@ $^ `pkg-config --cflags --libs gstreamer-1.0`

mjpg-240p120: mjpg-240p120.cpp 
	g++ -o $@ $^ `pkg-config --cflags --libs gstreamer-1.0`

yuyv-720p9: yuyv-720p9.cpp 
	g++ -o $@ $^ `pkg-config --cflags --libs gstreamer-1.0`

yuyv-600p21: yuyv-600p21.cpp 
	g++ -o $@ $^ `pkg-config --cflags --libs gstreamer-1.0`

yuyv-480p30: yuyv-480p30.cpp 
	g++ -o $@ $^ `pkg-config --cflags --libs gstreamer-1.0`

yuyv-240p30: yuyv-240p30.cpp 
	g++ -o $@ $^ `pkg-config --cflags --libs gstreamer-1.0`

clean:
	rm -rf mjpg-720p60
	rm -rf mjpg-600p60
	rm -rf mjpg-480p120
	rm -rf mjpg-240p120
	rm -rf yuyv-720p9
	rm -rf yuyv-600p21
	rm -rf yuyv-480p30
	rm -rf yuyv-240p30
